package com.chenhy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class LoginController {

    @PostMapping("/loginFail")
    public String loginFail(Model model){
        model.addAttribute("msg","登陆失败，可能是账号或密码有误");
        return "login";
    }



}
